<% include header%>
<div id="wz">
    <img src="/images/28.jpg" alt="">
    <% posts.forEach(function (post,index) { %>
    <div class="ph">
        <p>
        <h2><a class="pt" href="/u/<%= post.name %>/<%= post.time.minute %>/<%= post.title %>"><%= post.title %></a></h2>
        </p>

        <p class="info pp">
            作者：<a href="/u/<%= post.name %>"><%= post.name %></a> |
            日期：<%= post.time.minute %><br>
            标签：
            <% post.tags.forEach(function (tag,index) { %>
            <% if (tag) { %>
            <a class="tag" href="/tags/<%= tag %>"><%= tag %></a>
            <% } %>
            <% }) %>
        </p>
        <p><%- post.post %></p>
        <p class="info">阅读：<%= post.pv %> | 评论：<%= post.comments.length %></p>
    </div>
    <% }) %>

</div>
<% include paging %>
<% include footer%>